package com.jx.lcs.feedbackinfo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tianyu.jty.common.persistence.HibernateDao;
import com.tianyu.jty.common.persistence.Page;
import com.tianyu.jty.common.service.BaseService;
import com.jx.lcs.feedbackinfo.dao.FeedBackInfoDao;
import com.jx.lcs.feedbackinfo.entity.FeedBackInfo;

/**
 * 用户service
 * @author ty
 * @date 2015年1月13日
 */
@Service
@Transactional(readOnly = true)
public class FeedBackInfoService extends BaseService<FeedBackInfo, String> {

	@Autowired
	private FeedBackInfoDao feedBackInfoDao;

	@Override
	public HibernateDao<FeedBackInfo, String> getEntityDao() {
		return feedBackInfoDao;
	}
	public List<FeedBackInfo> getFeedBackInfoByName(String userName,Page<FeedBackInfo> page){
		return feedBackInfoDao.getFeedBackInfoByName(userName,page);
		
	}
	public int getFeedBackInfoNum(String userName){
		return feedBackInfoDao.getFeedBackInfoNum(userName);
		
	}
}
